package com.ky.pro.java.rpc.hd.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ky.pro.java.rpc.hd.common.entity.FrozenAssets;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 资产冻结表 Mapper 接口
 * </p>
 *
 * @author Kevin Dummy
 * @since 2022-01-02
 */
public interface FrozenAssetsMapper extends BaseMapper<FrozenAssets> {

    /**
     * 更新冻结资金额度
     * @param accountId
     * @param currency
     * @param amountToAdd
     * @return
     */
    int updateFrozenAssetsByAccountId(@Param("accountId") long accountId, @Param("currency") int currency, @Param("amountToAdd") long amountToAdd);

}
